package file.day9_24.day08;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;

public class CollectionDemo {


    public static void main(String[] args) {
        Collection c = new HashSet();//

        Point p = new Point(1,2);
        Point p1 = new Point(1,2);

        c.add(new Point(1,2));
        c.add(new Point(2,3));
        c.add(new Point(3,4));
        c.add(new Point(1,2));

        System.out.println(p);
        System.out.println(c);

        System.out.println(c.contains(p));
        System.out.println(p.equals(p1));


    }

}
